package niit.game;

import android.util.Log;

public class SpriteThread extends Thread {
	private GameView gView;
	boolean isRun = false;
	Enemy enemy;

	public SpriteThread(GameView gv) {
		this.gView = gv;
	}

	public void isRunning(boolean run) {
		this.isRun = run;
	}

	public void run() {
		while (Main.finish) {
			try {
				Log.d("Chay", "Chạy thread SpriteThread");
				Thread.sleep(1000);
				MyPlane.shoot();			
				gView.addEnemy();
				enemy.fire();
			} catch (Exception e) {
				// TODO: handle exception
			}

		}
	}

}
